class ChatRecordListModel {
  int rid;
  String lastText;
  String createtime;
  String memberTel;
  String memberNickname;
  String memberHead;
  String memberToken;
  int id;

  ChatRecordListModel(
      {this.rid,
      this.lastText,
      this.createtime,
      this.memberTel,
      this.memberNickname,
      this.memberHead,
      this.memberToken,
      this.id});

  ChatRecordListModel.fromJson(Map<String, dynamic> json) {
    rid = json['rid'];
    lastText = json['last_text'];
    createtime = json['createtime'];
    memberTel = json['member_tel'];
    memberNickname = json['member_nickname'];
    memberHead = json['member_head'];
    memberToken = json['member_token'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['rid'] = this.rid;
    data['last_text'] = this.lastText;
    data['createtime'] = this.createtime;
    data['member_tel'] = this.memberTel;
    data['member_nickname'] = this.memberNickname;
    data['member_head'] = this.memberHead;
    data['member_token'] = this.memberToken;
    data['id'] = this.id;
    return data;
  }
}
